package com.permission_server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @TableName sys_role_permission
 */
@TableName(value = "sys_role_permission")
@Data
@ApiModel(value = "com.permission_server.entity.SysRolePermissionEntity", description = "角色权限")
public class SysRolePermissionEntity implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID", dataType = "String")
    private String id;

    /**
     * 角色ID
     */
    @TableField(value = "role_id")
    @ApiModelProperty(value = "角色ID", dataType = "String")
    private String roleId;

    /**
     * 权限ID
     */
    @TableField(value = "permission_id")
    @ApiModelProperty(value = "权限ID", dataType = "String")
    private String permissionId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
